package com.example.databasepj.entity;
import lombok.Data;

import java.time.LocalDateTime;
@Data
public class OrderEntity {
    private int order_id;
    private int user_id;
    private int merchant_id;
    private int order_form; // 可以使用枚举代替整型
    private int order_status; // 可以使用枚举代替整型
    private java.time.LocalDateTime create_time;

    public OrderEntity(int order_id, int user_id, int merchant_id, int order_form, int order_status,  LocalDateTime create_time) {
        this.order_id = order_id;
        this.user_id = user_id;
        this.merchant_id = merchant_id;
        this.order_form = order_form;
        this.order_status = order_status;
        this.create_time = create_time;
    }

    public OrderEntity() {
    }


    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getMerchant_id() {
        return merchant_id;
    }

    public void setMerchant_id(int merchant_id) {
        this.merchant_id = merchant_id;
    }

    public int getOrder_form() {
        return order_form;
    }

    public void setOrder_form(int order_form) {
        this.order_form = order_form;
    }

    public int getOrder_status() {
        return order_status;
    }

    public void setOrder_status(int order_status) {
        this.order_status = order_status;
    }


    public LocalDateTime getCreate_time() {
        return create_time;
    }

    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }
}
